package utils;

import book.Library;

/**
 * Created with IntelliJ IDEA.
 * Description:单例模式创建图书馆对象
 * User: 87111
 * Date: 2025-08-24
 * Time: 12:50
 */
public class LibrarySingleton {
    private static Library library;
    private LibrarySingleton() {

    }
    public static Library createLibrary() {
        if(library == null) {
            library = new Library();
        }
        return library;
    }
}
